package cn.hackcloud.mutithread.mutilthread.producer;

public class Test {
	public static void main(String[] args) {
		Object object = new Object();
		P p = new P(object);
		C c = new C(object);
		ThreadA[] threadA = new ThreadA[2];
		ThreadB[] threadB = new ThreadB[2];
		
		for (int i = 0; i < 2; i++) {
			threadA[i]=new ThreadA(p);
			threadB[i]=new ThreadB(c);
			threadA[i].start();
			threadB[i].start();
		}

	}
}
